﻿using System;
using System.Collections.Generic;
using ServerApi.Models.Menu;
namespace ServerApi.administrator
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        public List<Role> listrole = new List<Role>();
        public List<TypeRole> listmenu = new List<TypeRole>();
        public string page = "Application.aspx";
        protected void Page_Load(object sender, EventArgs e)
        {
            string url = Request.Url.AbsolutePath;
            page = url.Substring(url.LastIndexOf('/') + 1);
            if (Session["listrole"] != null)
            {
                listrole = (List<Role>)Session["listrole"];
                listmenu = (List<TypeRole>)Session["listmenu"];
            }
            
        }
    }
}